<div class="pageContent" style="border-left:1px #B8D0D6 solid;border-right:1px #B8D0D6 solid">
<div class="panelBar">
		<ul class="toolBar">
			<in name="authRule_addId" value="$Think.session.rules">
				<li><a class="add" href="{:U(MODULE_NAME.'/'.CONTROLLER_NAME.'/add',array('pid'=>0),'')}" target="dialog" mask="true" height="320"><span>添加规则</span></a></li>
			</in><in name="authRule_delId" value="$Think.session.rules">
				<li><a class="delete" href="{:U(MODULE_NAME.'/'.CONTROLLER_NAME.'/delete','','')}/id/{sid_auth}/navTabId/authList" target="ajaxTodo" title="确定要删除吗?"><span>删除</span></a></li>
			</in><in name="authRule_editId" value="$Think.session.rules">
				<li><a class="edit" href="{:U(MODULE_NAME.'/'.CONTROLLER_NAME.'/edit','','')}/id/{sid_auth}" target="dialog" mask="true" height="310"><span>修改</span></a></li>
				<li class="line">line</li>
			</in>
		</ul>
	</div>
	<table class="table" width="99%" layoutH="75">
		<thead>
			<tr>
				<th width="80">序号</th>
				<th width="240">规则标识</th>
				<th width="100">规则名称</th>
				<th>类型</th>
				<th>状态</th>
				<th>规则表达式</th>	
				<th>排序</th>
				<th>菜单项</th>
				<th>target</th>
				<th>rel</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			<foreach name="auth" item="v" key="k">
				<tr target="sid_auth" rel="{$v['id']}">
					<td>{$v['id']}</td>
					<td>{$v['html']}{$v['name']}</td>
					<td>{$v['title']}</td>
					<td><if condition="$v['type']">是<else/>否</if></td>
					<td>{$v['status']|getStatus=###}</td>
					<td>{$v['condition']}</td>
					<td>{$v['sort']}</td>
					<td>{$v['menu']|getStatus=###}</td>
					<td>{$v['target']}</td>
					<td>{$v['rel']}</td>
					<td>
						<in name="authRule_statusId" value="$Think.session.rules">
							{$v['status']|changeStatus=$v['id'],'navTabAjaxDone',MODULE_NAME,CONTROLLER_NAME,'authList'}
						</in><in name="authRule_editId" value="$Think.session.rules">
							<a href="{:U(MODULE_NAME.'/'.CONTROLLER_NAME.'/edit',array('id'=>$v['id'],'pid'=>$v['pid']),'')}" target="dialog" mask="true"  height="320">编辑</a>
						</in><in name="authRule_menuId" value="$Think.session.rules">
							<a href="{:U(MODULE_NAME.'/'.CONTROLLER_NAME.'/menu',array('id'=>$v['id']),'')}" target="dialog" mask="true"  height="320" title="【{$v['title']}】菜单设置">菜单设置</a>
						</in><in name="authRule_delId" value="$Think.session.rules">
							<a href="{:U(MODULE_NAME.'/'.CONTROLLER_NAME.'/delete','','')}/id/{$v['id']}/navTabId/authList" target="ajaxTodo" title="确定要删除吗?">删除</a>
						</in><in name="authRule_addNextId" value="$Think.session.rules">
							<if condition="$v['level'] lt 3"><a href="{:U(MODULE_NAME.'/'.CONTROLLER_NAME.'/addNext',array('pid'=>$v['id']),'')}"  target="dialog" mask="true">添加下一级</a></if>
						</in>
					</td>
				</tr>
			</foreach>
		</tbody>
	</table>
</div>